const { DataTypes } = require("sequelize");
const seq = require("../db/seq");

//创建模型类
const QuestionUser = seq.define("QuestionUser", {
  questionId: {
    type: DataTypes.INTEGER,
    allowNull: false,
    unique: false,
    comment: "问题Id",
  },
  userId: {
    type: DataTypes.INTEGER,
    allowNull: false,
    unique: false,
    comment: "用户Id",
  }
});

// QuestionUser.sync({ force: true })

module.exports = QuestionUser;
